Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement stop_extension() #565

Merged
merged 3 commits into from
Jan 4, 2024
Merged

Conversation

dlqqq
Copy link
Member

@dlqqq dlqqq commented Jan 4, 2024

This PR significantly speeds up the time it takes to stop the server by properly shutting down the Dask client when the Jupyter Server is stopping.

@dlqqq dlqqq added the enhancement New feature or request label Jan 4, 2024
@dlqqq dlqqq force-pushed the add-stop-extension branch from a740337 to 865af33 Compare January 4, 2024 20:52
Copy link
Collaborator

@andrii-i andrii-i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good work, extension is much nicer to use / shutdown with this.

@dlqqq dlqqq enabled auto-merge (squash) January 4, 2024 21:26
@dlqqq dlqqq merged commit 30e4f8f into jupyterlab:main Jan 4, 2024
8 checks passed
@dlqqq
Copy link
Member Author

dlqqq commented Jan 4, 2024

@meeseeksdev please backport to 1.x

Copy link

lumberbot-app bot commented Jan 4, 2024

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
git checkout 1.x
git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
git cherry-pick -x -m1 30e4f8fd5439dbb5ca296bb04dcb91292bcc76de
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
git commit -am 'Backport PR #565: Implement `stop_extension()`'
  1. Push to a named branch:
git push YOURFORK 1.x:auto-backport-of-pr-565-on-1.x
  1. Create a PR against branch 1.x, I would have named this PR:

"Backport PR #565 on branch 1.x (Implement stop_extension())"

And apply the correct labels and milestones.

Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon!

Remember to remove the Still Needs Manual Backport label once the PR gets merged.

If these instructions are inaccurate, feel free to suggest an improvement.

dbelgrod pushed a commit to dbelgrod/jupyter-ai that referenced this pull request Jun 10, 2024
* update yarn.lock

* implement stop_extension()

* update error log msg
Marchlak pushed a commit to Marchlak/jupyter-ai that referenced this pull request Oct 28, 2024
* update yarn.lock

* implement stop_extension()

* update error log msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement stop_extension()
3 participants